//
//  TRUploadEditerViewController.h
//  WeiMiLan
//
//  Created by anan on 15/2/4.
//  Copyright (c) 2015年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "ZYQAssetPickerController.h"
#import "TRImageItemCollectionViewCell.h"
#import "UICollectionView+Draggable.h"
#import "OggPlayerManager.h"
#import "RecorderManager.h"
#import "FastTextView.h"
#import "AGImagePickerController.h"

#import "GJCFAssetsPickerViewController.h"

@interface TRUploadEditerViewController : UIViewController<UINavigationControllerDelegate,UIActionSheetDelegate,UICollectionViewDataSource, UICollectionViewDelegateFlowLayout,UICollectionViewDataSource_Draggable,AVAudioRecorderDelegate,RecordingDelegate, PlayingDelegate,AGImagePickerControllerDelegate,GJCFAssetsPickerViewControllerDelegate>
{
    AVAudioRecorder *recorder;
    NSTimer *timer;
    NSURL *urlPlay;
    NSMutableDictionary *paramDict;
}

@property(strong,nonatomic)WeChatNavigationBar *weChatNavigationBar;
@property (nonatomic, assign) BOOL isRecording;
@property (nonatomic, assign) BOOL isPlaying;
@property (nonatomic, assign) NSTimeInterval timeEnd;
@property (nonatomic, assign) NSTimeInterval timeStart;

@property (nonatomic,weak) IBOutlet UIView *viewImages;
@property (nonatomic,weak) IBOutlet UIView *viewAskBuy;
@property (nonatomic,weak) IBOutlet UIView *viewBottom;
@property (nonatomic,weak) IBOutlet UICollectionView *collectionView;

@property (nonatomic,strong) IBOutlet UIButton *buttonAddFile;
@property (nonatomic,strong) IBOutlet UIButton *buttonType;
@property (strong,nonatomic) IBOutlet UITextField *textFieldPrize;
@property (strong,nonatomic) IBOutlet UITextView *contentTextView;
@property (strong,nonatomic) IBOutlet UISwitch *switchAskBuy;
@property (nonatomic,weak) IBOutlet UILabel *labelRecordHint;
@property (copy,nonatomic) NSString * timeString;

@property (strong,nonatomic) NSArray *directorys;
@property (nonatomic,strong) NSMutableArray *images;
@property (nonatomic,strong) NSArray *imagesService;
@property (nonatomic,strong) NSMutableArray *photoDeletes;
@property (nonatomic,strong) NSMutableArray *photoUpdates;
@property (nonatomic,strong) NSMutableArray *photoUploads;
@property (nonatomic,strong) NSString *productNameOld;

@property (strong,nonatomic) NSString *directoryString;

@property (nonatomic,copy) NSString *productTypeId;
@property (nonatomic,copy) NSDictionary *productInfo;

@property (nonatomic,weak) IBOutlet UIView *viewRecord1;
@property (nonatomic,weak) IBOutlet UIView *viewRecord2;

@property (strong, nonatomic) IBOutlet UIImageView *imageView;
@property (strong, nonatomic) IBOutlet UILabel *labelRecordLength;
@property (strong, nonatomic) AVAudioPlayer *avPlay;

@property (nonatomic, assign) int recorderLength;
// 显示详情
- (void)show;
@end
